package com.panshi.hujin2.httpcrawler.domain.outlook;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * outlook单封邮件基础信息集合
 * @Author: wangxl
 * @Date: 2018/11/21 9:13
 */
@Data
@NoArgsConstructor
public class OutlookEmailItemInfo {
    //主题
    private String subject;
    //唯一ID
    private String itemId;
    //收件箱ID
    private String parentFolderId;
    //发件人邮件地址
    private String senderName;
    //发件人邮件地址
    private String receiveDate;

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getParentFolderId() {
        return parentFolderId;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public void setParentFolderId(String parentFolderId) {
        this.parentFolderId = parentFolderId;
    }

    public String getReceiveDate() {
        return receiveDate;
    }

    public void setReceiveDate(String receiveDate) {
        this.receiveDate = receiveDate;
    }

    public OutlookEmailItemInfo(String subject, String itemId, String parentFolderId, String senderName, String receiveDate) {
        this.subject = subject;
        this.itemId = itemId;
        this.parentFolderId = parentFolderId;
        this.senderName = senderName;
        this.receiveDate = receiveDate;
    }

    @Override
    public String toString() {
        return "ItemInfo{" +
                "subject='" + subject + '\'' +
                ", itemId='" + itemId + '\'' +
                ", parentFolderId='" + parentFolderId + '\'' +
                ", senderName='" + senderName + '\'' +
                ", receiveDate='" + receiveDate + '\'' +
                '}';
    }
}
